package com.share.tool.jni;

import com.share.common.utils.FileUtil;
import com.share.tool.jni.utils.des.DesUtil;

public class TestJni {

    public static void main(String[] args) {
        String cygwin = FileUtil.copyResourceToJavaHome("cygwin1.dll", false);
        String cygdes = FileUtil.copyResourceToJavaHome("des/cygdes.dll", true);
        System.load("C:/Windows/System32/KERNEL32.dll");
        System.load(cygwin);
        System.load(cygdes);

        String fdfd = DesUtil.decode("fdfd");
        System.out.println(fdfd);
    }
}
